<?php
$input  = array("php", 4.0, array("green", "red"));
$reversed = array_reverse($input);
$preserved = array_reverse($input, true);

var_dump($input);
var_dump($reversed);
var_dump($preserved);
?>